﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BLLUtilidades;

namespace BLLDominar
{
    public class BLLRegion: BLLPadre<DominarDataContext>
    {
        public BLLRegion(DominarDataContext contexto) : base(contexto) { }
        public BLLRegion() : this(new DominarDataContext()) { }

        public List<DA_Region> TraerRegiones()
        {
            return Contexto.DA_Regions.ToList();
        }

        public DA_Region TraerRegion(int idRegion)
        {
            return Contexto.DA_Regions.Where(r => r.IdRegion == idRegion).FirstOrDefault();
        }
    }
}
